package com.topboya.linker.model.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ProductInforListReponse extends BaseResponse implements Parcelable {

    private Data data;

    protected ProductInforListReponse(Parcel in) {

    }

    public static final Creator<ProductInforListReponse> CREATOR = new Creator<ProductInforListReponse>() {
        @Override
        public ProductInforListReponse createFromParcel(Parcel in) {
            return new ProductInforListReponse(in);
        }

        @Override
        public ProductInforListReponse[] newArray(int size) {
            return new ProductInforListReponse[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }


    public class Data {
        private int pageNo;
        private int pageSize;
        private String count;
        private int other;
        private List<ProductInforListReponse.ProductDetailInfoList> list;
        private int firstResult;
        private int maxResults;
        private String html;

        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }

        public int getPageNo() {
            return pageNo;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public String getCount() {
            return count;
        }

        public void setOther(int other) {
            this.other = other;
        }

        public int getOther() {
            return other;
        }

        public void setDocDetailInfoList(List<ProductDetailInfoList> list) {
            this.list = list;
        }

        public List<ProductDetailInfoList> getDocDetailInfoList() {
            return list;
        }

        public void setFirstResult(int firstResult) {
            this.firstResult = firstResult;
        }

        public int getFirstResult() {
            return firstResult;
        }

        public void setMaxResults(int maxResults) {
            this.maxResults = maxResults;
        }

        public int getMaxResults() {
            return maxResults;
        }

        public void setHtml(String html) {
            this.html = html;
        }

        public String getHtml() {
            return html;
        }

        public class OffIdAndName {

        }

        @Override
        public String toString() {
            return "Data{" +
                    "pageNo=" + pageNo +
                    ", pageSize=" + pageSize +
                    ", count=" + count +
                    ", other=" + other +
                    ", list=" + list +
                    ", firstResult=" + firstResult +
                    ", maxResults=" + maxResults +
                    ", html='" + html + '\'' +
                    '}';
        }
    }
    public class ProductDetailInfoList implements Serializable {
        private String id;
        private String isNewRecord;
        private String createDate;
        private String updateDate;
        private String productName;
        private String quanpinName;
        private String productGuige;
        private String productUnit;
        private String productFactory;
        private String productZhuzhi;
        private String productYibao;
        private String productJiyao;
        private String otc;
        private String extendFlag;
        private String fileFlag;
        private String fileNum;
        // 用来保存产品下下面已经被选中的资料信息
        private ArrayList<SelectFileResponse.FileList> fileLists;
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(String isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(String updateDate) {
            this.updateDate = updateDate;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getQuanpinName() {
            return quanpinName;
        }

        public void setQuanpinName(String quanpinName) {
            this.quanpinName = quanpinName;
        }

        public String getProductGuige() {
            return productGuige;
        }

        public void setProductGuige(String productGuige) {
            this.productGuige = productGuige;
        }

        public String getProductUnit() {
            return productUnit;
        }

        public void setProductUnit(String productUnit) {
            this.productUnit = productUnit;
        }

        public String getProductFactory() {
            return productFactory;
        }

        public void setProductFactory(String productFactory) {
            this.productFactory = productFactory;
        }

        public String getProductZhuzhi() {
            return productZhuzhi;
        }

        public void setProductZhuzhi(String productZhuzhi) {
            this.productZhuzhi = productZhuzhi;
        }

        public String getProductYibao() {
            return productYibao;
        }

        public void setProductYibao(String productYibao) {
            this.productYibao = productYibao;
        }

        public String getProductJiyao() {
            return productJiyao;
        }

        public void setProductJiyao(String productJiyao) {
            this.productJiyao = productJiyao;
        }

        public String getOtc() {
            return otc;
        }

        public void setOtc(String otc) {
            this.otc = otc;
        }

        public String getExtendFlag() {
            return extendFlag;
        }

        public void setExtendFlag(String extendFlag) {
            this.extendFlag = extendFlag;
        }

        public String getFileFlag() {
            return fileFlag;
        }

        public void setFileFlag(String fileFlag) {
            this.fileFlag = fileFlag;
        }

        public String getFileNum() {
            return fileNum;
        }

        public void setFileNum(String fileNum) {
            this.fileNum = fileNum;
        }

        public ArrayList<SelectFileResponse.FileList> getFileLists() {
            return fileLists;
        }

        public void setFileLists(ArrayList<SelectFileResponse.FileList> fileLists) {
            this.fileLists = fileLists;
        }

        @Override
        public String toString() {
            return "ProductDetailInfoList{" +
                    "id='" + id + '\'' +
                    ", isNewRecord='" + isNewRecord + '\'' +
                    ", createDate='" + createDate + '\'' +
                    ", updateDate='" + updateDate + '\'' +
                    ", productName='" + productName + '\'' +
                    ", quanpinName='" + quanpinName + '\'' +
                    ", productGuige='" + productGuige + '\'' +
                    ", productUnit='" + productUnit + '\'' +
                    ", productFactory='" + productFactory + '\'' +
                    ", productZhuzhi='" + productZhuzhi + '\'' +
                    ", productYibao='" + productYibao + '\'' +
                    ", productJiyao='" + productJiyao + '\'' +
                    ", otc='" + otc + '\'' +
                    ", extendFlag='" + extendFlag + '\'' +
                    ", fileFlag='" + fileFlag + '\'' +
                    ", fileNum='" + fileNum + '\'' +
                    ", fileLists=" + fileLists +
                    '}';
        }
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ProductInforListReponse{" +
                "data=" + data +
                '}';
    }
}
